import request from '@/utils/request'

export function createLesson(params) {
  return request({
    url: '/manager/lesson/create',
    method: 'post',
    data: params
  })
}

export function getLessonsList(params) {
  return request({
    url: '/manager/lesson/list',
    method: 'post',
    data: params
  })
}

export function getLessonDetail(id) {
  return request({
    url: '/manager/lesson/detail',
    method: 'post',
    data: { id }
  })
}

export function modifyLesson(params) {
  return request({
    url: '/manager/lesson/modify',
    method: 'post',
    data: params
  })
}

export function deleteLesson(id) {
  return request({
    url: '/manager/lesson/delete',
    method: 'post',
    data: { id }
  })
}

export function getLessonEnums(){
  return request({
    url: '/manager/lesson/lessonEnums'
  })
}

